package cn.cloud.all.security.oauth2.common.exceptions;

@SuppressWarnings("serial")
public abstract class ClientAuthenticationException extends OAuth2Exception {

    public ClientAuthenticationException(String msg, Throwable t) {
        super(msg, t);
    }

    public ClientAuthenticationException(String msg) {
        super(msg);
    }

    @Override
    public int getHttpErrorCode() {
        // The spec says this is a bad request (not unauthorized)
        return 400;
    }

    @Override
    public abstract String getOAuth2ErrorCode();
}
